# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        黄周云  
# Name:         test07
# Description:  可选符号和特殊字符
# Author:       ASUS
# Date:         2019/3/25
#-------------------------------------------------------------------------------

import re
#？表示可选字符
#\w表示任意一个字母或数字，对中文也匹配
#\d表示任意一个数字
s = "\w?wow(\d?)+"
m = re.search(s,"awow")
print(m)
m = re.search(s,"awow12")
print(m)
m = re.search(s,"wow12")
print(m)
m = re.search(s,"ow12")
print(m)

